const methods = {
    a() {
        console.log('哈as')
    }
};

(<any>window).vm = new Vue({
    el: 'main',
    data: {
        msg: '阿斯蒂芬'
    },
    methods: methods,
})

methods.a()
